Skip to content

fix(chat): show a backgrounded command as running until its job ends - #699

Merged
moreih29 merged 1 commit into
developfrom
fix/chat-background-badge
Nov 19, 2026
Merged

moreih29 merged 1 commit into
developfrom
fix/chat-background-badge

Conversation

@moreih29

Copy link
Copy Markdown
Owner

Summary

A Claude tool call that went to the background showed a finished ✓ as soon as its result came back, while the command was still running. The tool row now follows the job the panel tracks for that call.

  • While the job runs, the row shows a "background" badge and the running spinner; when it ends it turns into ✓ or × (stopped jobs show as stopped).
  • A folded run of tools keeps a running background row visible and counts a failed job in its failure tally.
  • The Background button is hidden on a row that is already a background job.
  • jobsOf and docs/CLI.md note that background commands come from the current run only and are not restored from history after a restart (a known limit, decided to keep).

Tests

  • Table test for the job status to row status mapping (running, completed, failed, stopped) in item-view.test.ts.
  • bun run typecheck, bun run check:ci, related tests (627).

Manual check

Send sleep 10 and sleep 10 && false to the background mid-run: the rows show the badge and spinner, also inside a folded run, then ✓ and × when they end, matching the side panel.

🤖 Generated with Claude Code

@moreih29
moreih29 merged commit af3bdfc into develop Nov 19, 2026
7 checks passed
@moreih29
moreih29 deleted the fix/chat-background-badge branch November 19, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant